namespace EF_Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Init : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.AlmSet",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        HighAlm = c.Single(),
                        LowAlm = c.Single(),
                        City = c.String(maxLength: 50),
                    })
                .PrimaryKey(t => t.ID);
            
            CreateTable(
                "dbo.City",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        City = c.String(maxLength: 50),
                        CityKey = c.String(maxLength: 50),
                        Enable = c.Boolean(),
                    })
                .PrimaryKey(t => t.ID);
            
            CreateTable(
                "dbo.WeatherData",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        City = c.String(maxLength: 50),
                        High = c.Single(),
                        Low = c.Single(),
                        RecDate = c.DateTime(),
                    })
                .PrimaryKey(t => t.ID);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.WeatherData");
            DropTable("dbo.City");
            DropTable("dbo.AlmSet");
        }
    }
}
